<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
	<nav class="navbar navbar-inverse navbar-fixed-top">
		<div class="container">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle collapsed"
					data-toggle="collapse" data-target="#navbar" aria-expanded="false"
					aria-controls="navbar">
					<span class="sr-only">Toggle navigation</span> <span
						class="icon-bar"></span> <span class="icon-bar"></span> <span
						class="icon-bar"></span>
				</button>
				<a class="navbar-brand" href="${pageContext.request.contextPath}/index.jsp">六只蚊子书评</a>
			</div>
			<div id="navbar" class="navbar-collapse collapse">
			<c:if test="${user!=null}">
			<ul style="float:right" class="nav">
				<li style="float:left;height:50px;" class="active"><a href="${pageContext.request.contextPath }/UserCenterServlet" >${user.userName }</a></li>
				<li style="float:left;"><a href="${pageContext.request.contextPath }/UserLoginExitServlet">退出登录</a></li>
				
			</ul>
			</c:if>
				<ul class="nav navbar-nav">
					<li class="active"><a href="${pageContext.request.contextPath}/index.jsp">首页</a></li>
					<!-- 中国图书开始 -->
					<!--  <li class="dropdown"><a href="#" class="dropdown-toggle"
						data-toggle="dropdown" role="button" aria-expanded="false">中国
							<span class="caret"></span>
					</a>
						<ul class="dropdown-menu" role="menu">
							<li><a href="#">Action</a></li>
							<li><a href="#">Another action</a></li>
							<li><a href="#">Something else here</a></li>
							<li class="divider"></li>
							<li class="dropdown-header">Nav header</li>
							<li><a href="#">Separated link</a></li>
							<li><a href="#">One more separated link</a></li>
						</ul></li>-->
					<!-- 世界图书开始 -->
					<!--<li class="dropdown"><a href="#" class="dropdown-toggle"
						data-toggle="dropdown" role="button" aria-expanded="false">世界
							<span class="caret"></span>
					</a>
						<ul class="dropdown-menu" role="menu">
							<li><a href="#">Action</a></li>
							<li><a href="#">Another action</a></li>
							<li><a href="#">Something else here</a></li>
							<li class="divider"></li>
							<li class="dropdown-header">Nav header</li>
							<li><a href="#">Separated link</a></li>
							<li><a href="#">One more separated link</a></li>
						</ul></li>-->
					<li><a href="#contact">简介</a></li>
				</ul>
			</div>
			<!--/.nav-collapse -->
		</div>
	</nav>